
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$Think.config.APP_NAME}</title>
    <!-- 引入EasyUI样式 -->
    <link id="easyuiTheme" rel="stylesheet" href="__PUBLIC__/easyui/themes/default/easyui.css" type="text/css">

    <!-- 引入jQuery -->
    <script src="__PUBLIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <!-- 引入EasyUI -->
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js" charset="utf-8"></script>
    <!-- 引入 echarts.js -->
    <script src="__PUBLIC__/echarts/echarts.min.js"></script>
</head>
<body>
<div class="easyui-layout" data-options="fit : true,border : false">
    <block name="north"></block>
    <div data-options="region:'center',border:false">
        <div id="chart_area" style="width: 600px;height: 400px;">
        </div>
    </div>
    <block name="south"></block>
</div>
</body>
</html>

<block name="script">
    <script>
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: 'ECharts DEMO'
            },
            tooltip: {},
            legend: {
                data:['销量']
            },
            xAxis: {
                data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
            },
            yAxis: {},
            series: [{
                name: '销量',
                type: 'bar',
                data: [5, 20, 36, 10, 10, 20]
            }]
        };
    </script>
</block>

<script type="text/javascript">
    $(function () {
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('chart_area'));
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    });
</script>